<!-- 引入公共部分 -->
{% extends 'views/base.html' %}
{% block body %}

{% include 'views/components/header.html' %}
<div class="sign-container">
    <div class="sign-box">
        <form action="/signin" method="post">
            <div class="form-floating mb-3">
                <input type="text" class="form-control" id="floatingInput"
                     name="name">
                <label for="floatingInput">用户名</label>
            </div>
            <div class="form-floating mb-3">
                <input type="password" class="form-control"
                    id="floatingPassword" name="password">
                <label for="floatingPassword">密码</label>
            </div>
            
            <div class="d-grid gap-2 col-6 mx-auto mb-2">
                <button class="btn btn-primary" type="submit">立即登录</button>
            </div>
            <div class="form-floating">
                <a href="/signup" class="toLogin">没有账号？去注册</a>
            </div>
        </form>
    </div>
</div>
{% endblock %}